package com.example.personal.aiagent.xunfei.account.model.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Pattern;

/**
 * 账户请求
 */
@ToString(exclude = { "apiKey", "apiSecret" })
@Data
public class AccountRequest {
    /**
     * app id
     */
    @JsonProperty("app_id")
    @Pattern(regexp = "[a-zA-Z0-9]{8}$", message = "app_id format invalid, should container letter or number, length 8")
    private String appId;
    /**
     * app key
     */
    @JsonProperty("api_key")
    @Pattern(regexp = "[a-zA-Z0-9]{32}$", message = "api_key format invalid, should container letter or number, length 32")
    private String apiKey;
    /**
     * app secret
     */
    @JsonProperty("api_secret")
    @Pattern(regexp = "[a-zA-Z0-9]{32}$", message = "api_secret format invalid, should container letter or number, length 32")
    private String apiSecret;

    /**
     * 用户ID
     */
    @JsonProperty("user_id")
    private int userId;
}
